{% extends "package/base.html" %}

{% load crispy_forms_tags i18n page_metadata_tags %}

{% block metadata %}
    {% translate "Add package example" as trans_title %}
    {% page_metadata page_title=trans_title %}
{% endblock metadata %}

{% block body %}
    <div class="container">
        <div class="row">
            <div class="col-lg-6">
                <h2>{% translate "Example Form" %}</h2>

                <p>This form adds a website to the &ldquo;Sites using this package&rdquo; list.</p>

                <form action="{{ request.path }}" method="post">
                    {% csrf_token %}
                    <fieldset>
                        {{ form|crispy }}

                        <div class="form_block">
                            <input class="btn btn-default" type="submit" name="add" value="{% translate "Add new example" %}">
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
{% endblock body %}

{% block extra_body %}
    <script>
        $("#id_title").focus();
    </script>
{% endblock extra_body %}
